<link type="text/css" rel="stylesheet" href="<?=base_url()?>css/vote.css" />
<script type="text/javascript">
	function sortMe(event_id,sort_value){
		window.location="<?=site_url("vote/voteDetail")?>"+"/"+event_id+"/"+sort_value;
	}
</script>

<form name="" method="post">
<div id="border">   
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
     <td valign="top">       
        <table width="705" border="0" align="center" id="usertitle">
          <tr>
            <td><h3 style="">Classified Ads</h3></td>
            <td align="right"><a href="<?=site_url("classify/goto_addnew_classify/".htmlspecialchars($Z_USER["user_login"]))?>">POST A FREE ADs</a></td>
          </tr>
        </table>
        <div id="register">
        <div class="user_line_border_top">&nbsp;</div>
        <div style="margin:10px auto;"></div>
					
          <div id="vote_content">
             <table width="100%" border="0">
                <?php 
                foreach ($events->result_array() as $event)
                {
                ?>
                <tr>
                  <td width="80%" valign="top">&nbsp;&nbsp;<b><a href="<?=site_url("vote/voteDetail/".$event['event_id'])?>"><?=htmlspecialchars($event['top_name'])?></a></b><p align="justify" style="padding-left: 15px;"><?=htmlspecialchars($event['top_desc'])?></p></td>
                  <td width="20%" valign="top" align="right" style="padding-right: 5px;">expired on <b><?=$event['end_date']?></b></td>
                </tr>
                <tr><td colspan="2" height="5"> </td></tr>
                <?php 
                    }
                ?>
            </table>
          </div>         
        
        </td>
        <td width="254" valign="top">
			<?php include APPPATH."views/templates/common/right_content.php"; ?>
         </td>
         
      </tr>
  </table>
</div>
</form>



  